package com.gitee.wsl.mathematics.matrix.mat

/**
 * 不可变数值矩阵特化实现
 * @param dim   维数
 * @param value 数值
 */
class NumberMatrix(rowCount: Int, colCount: Int = rowCount,value:Double):
    FunMatrix(rowCount,colCount, valueFun = {i,j-> if(i==j) value else 0.0 }) {

        //override val rank = if (value != .0) row else 0
        //override val trace = value * dim
        //override val det = value.pow(dim)
}